import assessCheckApi from './api'
import { axios } from '@/utils/request'

// 上传附件
export function sqfjmbupload(data){
    return axios({
        url: assessCheckApi.sqfjmbupload,
        method:'post' ,
        data:data,
        url_2:'outside',
    })
}

// 附件删除
export function deleleMinioFile(params){
    return axios({
        url: assessCheckApi.deleleMinioFile,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}
// OA-打开文档-服务端-只读
export function openFile(params){
    return axios({
        url: assessCheckApi.openFile,
        method:'get' ,
        params:{...params},
        url_2:'outside',
    })
}
// minio-下载附件
export function downLoadOa(params){
    return axios({
        url: assessCheckApi.downLoadOa,
        method:'get' ,
        params:{...params},
        url_2:'outside',
        responseType: 'arraybuffer'
    })
}
